// 引入mockjs
const Mock = require('mockjs');

// 接口地址映射
const BASE_URL = '/mock';

// 请求地址前缀拼接
const APP_PRE = BASE_URL + '/xtgl_02_01/jcqxBm'

// 模拟查询分页列表数据
Mock.mock(RegExp(APP_PRE + '/findListByPage' + "*"), {"code":0,"message":"无数据","data":{
        total : 9,
        pageCount : 20,
        content : [
            // {yhid:'1',yhmc:'用户1',yhlx:'1',yhzt:0,jyyy:'密码多次错误，超出最大限制次数',symmcscs:'3',tszxzds:'5',cjsj:'2020-09-08 12:00:00',cjr:'admin'},
            // {yhid:'2',yhmc:'用户2',yhlx:'0',yhzt:1,jyyy:'',symmcscs:'3',tszxzds:'5',cjsj:'2020-09-08 12:00:00',cjr:'admin'},
            // {yhid:'3',yhmc:'用户3',yhlx:'1',yhzt:0,jyyy:'密码多次错误，超出最大限制次数',symmcscs:'3',tszxzds:'5',cjsj:'2020-09-08 12:00:00',cjr:'admin'},
        ]
    }
})

// 模拟删除
Mock.mock(RegExp(APP_PRE + '/delete' + "*"), {"code":0,"message":"无数据","data":{

    }
})
